package pe.com.bn.sach.domain;

/**
 * Bnchf60SedeId entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class Bnchf60SedeId implements java.io.Serializable {

	// Fields

	private Bnchf34OficinaRegistral bnchf34OficinaRegistral;
	private Long f60IdSede;

	// Constructors

	/** default constructor */
	public Bnchf60SedeId() {
	}

	/** full constructor */
	public Bnchf60SedeId(Bnchf34OficinaRegistral bnchf34OficinaRegistral,
			Long f60IdSede) {
		this.bnchf34OficinaRegistral = bnchf34OficinaRegistral;
		this.f60IdSede = f60IdSede;
	}

	// Property accessors

	public Bnchf34OficinaRegistral getBnchf34OficinaRegistral() {
		return this.bnchf34OficinaRegistral;
	}

	public void setBnchf34OficinaRegistral(
			Bnchf34OficinaRegistral bnchf34OficinaRegistral) {
		this.bnchf34OficinaRegistral = bnchf34OficinaRegistral;
	}

	public Long getF60IdSede() {
		return this.f60IdSede;
	}

	public void setF60IdSede(Long f60IdSede) {
		this.f60IdSede = f60IdSede;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof Bnchf60SedeId))
			return false;
		Bnchf60SedeId castOther = (Bnchf60SedeId) other;

		return ((this.getBnchf34OficinaRegistral() == castOther
				.getBnchf34OficinaRegistral()) || (this
				.getBnchf34OficinaRegistral() != null
				&& castOther.getBnchf34OficinaRegistral() != null && this
				.getBnchf34OficinaRegistral().equals(
						castOther.getBnchf34OficinaRegistral())))
				&& ((this.getF60IdSede() == castOther.getF60IdSede()) || (this
						.getF60IdSede() != null
						&& castOther.getF60IdSede() != null && this
						.getF60IdSede().equals(castOther.getF60IdSede())));
	}

	public int hashCode() {
		int result = 17;

		result = 37
				* result
				+ (getBnchf34OficinaRegistral() == null ? 0 : this
						.getBnchf34OficinaRegistral().hashCode());
		result = 37 * result
				+ (getF60IdSede() == null ? 0 : this.getF60IdSede().hashCode());
		return result;
	}

}